package paleGoldenRod.client;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.RemoteService;

public interface MessagingService extends RemoteService{
	/**
	 * Updates the frequency of the given unigram.
	 * 
	 * @param s1
	 *            the word
	 */
	public void sendString(String s1);

	/**
	 * Updates the frequency of the given bigram.
	 * 
	 * @param s1
	 *            first word
	 * @param s2
	 *            second word
	 */
	public String getString();

	/*
	 * =========== Below functions are for Word train ==============
	 * they all start with wt
	 */
	
	/**
	 * the user sends a new word for the sentence
	 */
	public Integer wtSendNewWord(Integer gameid, String str);
	
	public Integer wtJoinGame(Integer gameid, Integer cpeople, String username);
	
	public paleGoldenRod.client.WTGameStatus wtGetStatus(Integer gameid);
	
	public Integer wtLeaveGame(Integer gameid, String username);
	// public int wtGetStatus(int gameid);
	
	// public void wtLeaveGame(int gameid);
	
	/*
	 * =========== Above functions are for Word train ==============
	 */

	public Integer endTurn(ArrayList addedLetters, String[] words, int player);
	public ArrayList update(int player);
	public Integer getPlayerID();

}